package com.rj.bd.kj.dc;

import com.rj.bd.kj.TuoMin;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.security.InvalidKeyException;
import java.security.KeyPair;
import java.security.NoSuchAlgorithmException;

/**
 * @desc 对称加密的抽象类
 * @author jjr
 */

public abstract class MyAbstractClass implements TuoMin {

    //加密数据
    public abstract String encrypt(String data);
    //解密数据
    public abstract String decrypt(String maskedData) ;

    @Override
    public String mask(String data) {
        return null;
    }

    @Override
    public KeyPair generateKeyPair(int i, Object o) {
        return null;
    }
}
